import sys

def say(*sentences):
    if len(sentences) == 0: return

    msg_lines = []
    for i, sentence in enumerate(sentences):
         if len(sentence) > 80:
             for phrase in splitSentence(sentence,70): msg_lines.append(phrase) 
         else:  msg_lines.append(sentence)
         if i < len(sentences) - 1: msg_lines.append("")

    midPoint = len(msg_lines) / 2
    lastOne = len(msg_lines) - 1

    print                         "\n\tREdi says:"
    print                         "\t    |    .================================================================================."
    print                         "\t    |    |"
    for i, msg in enumerate(msg_lines):
        if i < midPoint:    print "\t    |    |\t" + msg
        elif i == midPoint: print "\t    +--> |\t" + msg
        else:               print "\t         |\t" + msg 
    print                         "\t         |"
    print                         "\t         .================================================================================.\n"

def splitSentence(sentence,linesize):
    return [sentence[i:i+linesize] for i in range(0, len(sentence), linesize)]

if __name__ == "__main__":
    say(*sys.argv[1:])
